//
//  Util.h
//  618
//
//  Created by ling on 12-3-8.
//  Copyright 2011 618. All rights reserved.
//

#import <Foundation/Foundation.h>
@interface Util : NSObject {

}

+(NSString *)getDateString:(NSDate *)date;
+(NSDate *)addDateString:(NSDate *)date addDays:(int)days;
+(NSString *)intervalSinceNow: (NSString *) theDate;
+(NSString *)stringFromDate:(NSDate *)date;
+(NSDate *)dateFromString:(NSString *)dateString;//时间转换
+(NSDate*) convertDateFromString:(NSString*)uiDate;
+(UIImage*)scaleToSize:(UIImage*)img size:(CGSize)size;//改变图片大小
+(long)fileSizeForDir:(NSString*)path;//计算文件夹下文件的总大小
+(void)createDir:(NSString*)path;//新建文件夹
+(NSString *)changeStr:(NSString*)str;//字符转义

@end
